package com.cskaoyan.service.system;

import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.bean.po.MarketRole;
import com.cskaoyan.bean.vo.RoleManagementOptionsVo;
import com.cskaoyan.bean.vo.systemVo.PermissionsBo;
import com.cskaoyan.bean.vo.systemVo.PermissionsVo;

public interface RoleManagementService {

    CommonData<RoleManagementOptionsVo> selectOptions();

    CommonData<MarketRole> selectCommonData(Integer page, Integer limit, String sort, String order, String name);

    MarketRole createRole(MarketRole marketRole);

    MarketRole updateRole(MarketRole marketRole);

    Integer deleteRole(MarketRole marketRole);

    PermissionsVo selectPermissions(Integer roleId);

    int permissionsPost(PermissionsBo permissionsBo);
}
